package com.example.star.entity;

import com.google.gson.annotations.SerializedName;

import java.util.Date;

public class Reply {
    @SerializedName("id")
    private Integer id;
    @SerializedName("adminName")
    private String adminName;
    @SerializedName("userName") // 确保字段名与 JSON 数据一致
    private String userName;
    @SerializedName("message")
    private String message;
    @SerializedName("createdAt")
    private Date createdAt;
    @SerializedName("user")
    private User user;

    public Reply() {
    }

    // Getters and Setters

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getAdminName() {
        return adminName;
    }

    public void setAdminName(String adminName) {
        this.adminName = adminName;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public Date getCreatedAt() {
        return createdAt;
    }

    public void setCreatedAt(Date createdAt) {
        this.createdAt = createdAt;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }
}